<template>
	<view class="content1">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title1">app导航栏的列表</text>
		</view>
		
		<!-- 导航栏示例列表 -->
		<view class="cu-list menu card-menu sm-border margin-top">
			<!-- 返回按钮的导航 -->
			<view class="cu-item arrow" @click.stop="navTo('/pages/btn/btn')">
				<view class="content">
					<text class="cuIcon-circlefill text-grey"></text>
					<text class="text-grey">返回按钮的导航</text>
				</view>
			</view>
			 
			<!-- 城市选择按钮（下拉按钮） -->
			<view class="cu-item arrow" @click.stop="navTo('/pages/city/city')">
				<view class="content">
					<text class="cuIcon-circlefill text-grey"></text>
					<text class="text-grey">城市选择按钮</text>
				</view>
			</view>
			
			<!-- 搜索框 -->
			<view class="cu-item arrow" @click.stop="navTo('/pages/search/search')">
				<view class="content">
					<text class="cuIcon-circlefill text-grey"></text>
					<text class="text-grey">搜索框</text>
				</view>
			</view>
			
			<!-- image相关 -->
			<view class="cu-item arrow" @click.stop="navTo('/pages/image/image')">
				<view class="content">
					<text class="cuIcon-circlefill text-grey"></text>
					<text class="text-grey">image相关</text>
				</view>
			</view>
			<!-- 内嵌h5运行 -->
			<view class="cu-item arrow" @click.stop="toH5">
				<view class="content">
					<text class="cuIcon-circlefill text-grey"></text>
					<text class="text-grey">内嵌h5运行</text>
				</view>
			</view>
		
			
		
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
				url:''
			}
		},
		onLoad() {

		},
		methods: {
			navTo(url){
				if(!url) return ;
				uni.navigateTo({
					url
				})
			},
			toH5() {
				// this.url = 'http://xiaofang.hapu.net/'
				uni.navigateTo({
					url:'/pages/web-view/web-view'
				})
			}
		},
		// 监听原生标题栏按钮点击事件
		onNavigationBarButtonTap(e){
			console.log('按钮点击事件',e)
		},
		// 监听原生标题栏搜索输入框搜索事件
		onNavigationBarSearchInputConfirmed(e){
			console.log('输入框搜索事件',e)
		}
	}
</script>

<style>
	.content1 {
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	.cu-list{
		width: 100%;
	}
	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title1 {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
